/*
 * Created by JFormDesigner on Sat Jul 16 09:00:36 EDT 2011
 */

package ca.etsmtl.log730.projet.view.files;

import javax.swing.*;
import javax.swing.GroupLayout;
import com.jgoodies.forms.factories.*;
import com.jgoodies.forms.layout.*;
import org.jdesktop.beansbinding.*;
import org.jdesktop.beansbinding.AutoBinding.UpdateStrategy;
import org.jdesktop.swingx.*;
import org.jdesktop.swingx.treetable.*;

/**
 * @author Joe Labrosse
 */
public class JXFiles extends JXPanel {
	public JXFiles() {
		initComponents();
	}

	public ObjectTableModel getObjectTableModel() {
		return objectTableModel;
	}

	private void initComponents() {
		// JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
		// Generated using JFormDesigner Evaluation license - Joe Labrosse
		scrollPane1 = new JScrollPane();
		xTable1 = new JXTable();
		objectTableModel = new ObjectTableModel();

		//======== this ========

		// JFormDesigner evaluation mark
		setBorder(new javax.swing.border.CompoundBorder(
			new javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0),
				"JFormDesigner Evaluation", javax.swing.border.TitledBorder.CENTER,
				javax.swing.border.TitledBorder.BOTTOM, new java.awt.Font("Dialog", java.awt.Font.BOLD, 12),
				java.awt.Color.red), getBorder())); addPropertyChangeListener(new java.beans.PropertyChangeListener(){public void propertyChange(java.beans.PropertyChangeEvent e){if("border".equals(e.getPropertyName()))throw new RuntimeException();}});

		setLayout(new FormLayout(
			"default:grow",
			"fill:default"));

		//======== scrollPane1 ========
		{
			scrollPane1.setViewportView(xTable1);
		}
		add(scrollPane1, CC.xy(1, 1));

		//---- bindings ----
		bindingGroup = new BindingGroup();
		bindingGroup.addBinding(Bindings.createAutoBinding(UpdateStrategy.READ_WRITE,
			objectTableModel, xTable1, BeanProperty.create("model")));
		bindingGroup.bind();
		// JFormDesigner - End of component initialization  //GEN-END:initComponents
	}

	// JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables
	// Generated using JFormDesigner Evaluation license - Joe Labrosse
	private JScrollPane scrollPane1;
	private JXTable xTable1;
	private ObjectTableModel objectTableModel;
	private BindingGroup bindingGroup;
	// JFormDesigner - End of variables declaration  //GEN-END:variables
}
